home *** CD-ROM | disk | FTP | other *** search
Text File | 1999-02-04 | 1.5 KB | 57 lines | [TEXT/MSCT] |
- //
- // All Colors.M1S: show color list for document
- //
- //
- // *************************************
- // Procedures
- // *************************************
- //
- proc colorProc
- print
- Left(
- it.color_type
- +" ",16)+
- Left(
- it.color_model
- +" ",16)
- + it.name
- endproc
-
- //
- // **************************************
- // The actual script
- // **************************************
- //
- // Save 'it' in 'theJob' - 'it' is under control of MarkzONE and
- // changes value quite often
- //
- theJob = it
- //
- // Gimme a title
- //
- print "Complete Color List For " + theJob.name
- print "Color Type Color Model Color Name"
- print "---------- ----------- ----------"
-
- //
- // Gimme a color list: execute 'colorProc' (see above) for each of the colors
- // encountered during scan. Scan will start from 'theJob' and then
- // descend through the job's treestructure of objects - anything that is
- // either used, contained in, overlapping with, or defined by - so it will
- // find all colors used by boxes, all colors used by contained images,
- // all colors defined by the document,... and so on...
- //
- on color do colorProc
- scan theJob links uses,contains,overlaps,defines
- //
- // 'scan reset' clears the 'on color' - it is a good idea to
- // do scan reset as soon as possible to avoid unexpected results
- // because of an 'on' statement that is still in effect.
- scan reset
-
- //
- // Gimme a line
- //
- print "---------------------------------------"
-
-